package com.parking.order.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户添加评论Dto
 * */
@Data
public class AddCommentDto {
    /**
     * 订单评论Id
     * */
    private Integer commentId;
    /**
     * 订单编号
     * */
    private String orderInfoNum;
    /**
     * 评论内容
     * */
    private String commentInfo;
    /**
     * 评论分数 "GOOD" "OK" "BAD"
     * */
    private String commentScore;
    /**
     * 评论时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commentTime;
    /**
     * 物业信息Id
     * */
    private Integer certifiedInfoId;

    /**
     * 物业名称
     * */
    private String certifiedInfoName;
    /**
     * 物业电话
     * */
    private String certifiedInfoTel;
    /**
     * 物业地址
     * */
    private String certifiedInfoAddress;
    /**
     * 构造函数
     * commentId    评论Id
     * orderInfoNum 订单编号
     * commentInfo   评论信息
     * commentScore  评论分数
     * commentTime   评论时间
     * certifiedInfoId 物业信息Id
     * certifiedInfoName 物业名称
     * certifiedInfoTel  物业电话
     * certifiedInfoAddress 物业地址
     * */
    public AddCommentDto(Integer commentId, String orderInfoNum, String commentInfo, String commentScore, LocalDateTime commentTime, Integer certifiedInfoId, String certifiedInfoName, String certifiedInfoTel, String certifiedInfoAddress) {
        this.commentId = commentId;
        this.orderInfoNum = orderInfoNum;
        this.commentInfo = commentInfo;
        this.commentScore = commentScore;
        this.commentTime = commentTime;
        this.certifiedInfoId = certifiedInfoId;
        this.certifiedInfoName = certifiedInfoName;
        this.certifiedInfoTel = certifiedInfoTel;
        this.certifiedInfoAddress = certifiedInfoAddress;
    }
}
